<template>
	<view>
		<picker @change="pickerChange" mode = multiSelector :range="[[1,2,3,4],['a','b','c','d'],['apple','banana','pear']]">
			请选择数据
		</picker>
		<picker @change="dateChange" mode = "date" >
			<text>{{date}}</text>
		</picker>
	</view>
</template>

<script>
	export default {
		data() {
			return {
				pickerData:[],
				date:'2024-01-05'
			}
		},
		methods: {
			pickerChange(event){
				console.log(event.detail.value)
				this.pickerData=event.detail.value
			},
			dateChange(event){
				console.log(event.detail.value)
				this.date=event.detail.value
			}
		}
	}
</script>

<style>

</style>
